﻿@model ArchiveViewModel
@{
    Layout = null;
    ViewBag.Title = "卷内目录列表";
}
<style type="text/css">
    .tab013 {
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
    }

        .tab013, .tab013 tr, .tab013 td {
            font-family: "宋体";
            font-size: 14px;
            color: #000000;
            line-height: 30px;
        }

            .tab013 .tab013_title {
                font-weight: bold;
                height: 32px;
                line-height: 32px;
                text-align: center;
                padding-left: 10px;
                color: #045795;
            }

            .tab013 td {
                text-align: center;
                font-size: 12px;
                color: #222;
                border-left: 1px solid #000;
                border-top: 1px solid #000;
                border-collapse: collapse;
            }
            .tab013 input {
                float:none !important;
            }
</style>

<table width="100%" class="tab013">
    <tr class="tab013_title">
        <td style="width: 50px;">序号</td>
        <td style="width: 80px;">文件编号</td>
        <td style="width: 100px;">责任者</td>
        <td style="width: 300px;">文件材料题名</td>
        <td style="width: 80px;">日期</td>
        <td style="width: 60px;">页数</td>
        <td style="width: 60px;">操作</td>
    </tr>
    @{int vCount = Model.TheBcdVolumedirectoryList.Count;}
    @for (int i = 0; i < vCount; i++)
    {
        <tr id="tr_@(Model.TheBcdVolumedirectoryList[i].Vd_ID)">
            <td>@Html.TextBoxFor(m => m.TheBcdVolumedirectoryList[i].Vd_ID, new { @class="hide"})
                @Html.TextBoxFor(m => m.TheBcdVolumedirectoryList[i].Vd_Order, new { size = "5" })</td>
            <td>@(Model.TheBcdVolumedirectoryList[i].Vd_Code)</td>
            <td>@(Model.TheBcdVolumedirectoryList[i].Vd_Duty)</td>
            <td>@(Model.TheBcdVolumedirectoryList[i].Vd_Name)</td>
            <td>@(Model.TheBcdVolumedirectoryList[i].Vd_Date == null ? "" : Convert.ToDateTime(Model.TheBcdVolumedirectoryList[i].Vd_Date).ToString("yyyy-MM-dd"))</td>
            <td>@Html.TextBoxFor(m => m.TheBcdVolumedirectoryList[i].Vd_Page, new { size = "7" })</td>
            <td>
                <a title="将文件拆出" href="@Url.Action("VolumeSplit", "Archive", new { id = Model.TheBcdVolumedirectoryList[i].Vd_ID })" target="ajaxTodo" class="btnInfo" style="margin-left:4px;" callback="volumeSplit">将文件拆出</a>
                <a title="彻底删除文件" href="@Url.Action("Del", "VolumeList", new { id = Model.TheBcdVolumedirectoryList[i].Vd_ID })" target="ajaxTodo" class="btnDel" style="margin-left:3px;" callback="volumeDel">彻底删除文件</a>
            </td>
        </tr>
    }
</table>
